package lc.com.lcpicturebackend.service;

import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import java.io.IOException;

public interface SseService {
    /**
     * 处理SSE消息流
     */
    void handleSseMessage(String chunk, StringBuilder markdownBuffer, SseEmitter emitter) throws IOException;

    /**
     * 处理剩余的Markdown内容
     */
    void handleRemainingContent(StringBuilder markdownBuffer, SseEmitter emitter) throws IOException;
}